package com.aspose.cells;

class zbxw extends zcdb {
   zbxw(TableStyle var1) throws Exception {
      this.d = 510;
      byte var2 = 6;
      int var7;
      if (var1.getName() != null) {
         var7 = var2 + 4 + var1.getName().length() * 2;
      } else {
         var7 = var2 + 4;
      }

      this.c = new byte[var7];
      byte[] var3 = new byte[]{-1, -1, -1, -1};
      byte var4 = 0;
      if (var1.b()) {
         var4 = (byte)(var4 | 2);
      }

      if (var1.c()) {
         var4 = (byte)(var4 | 4);
      }

      this.c[0] = var4;
      TableStyleElementCollection var5 = var1.getTableStyleElements();
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5.getCount()), 0, this.c, 2, 4);
      byte var6 = 6;
      if (var1.getName() != null) {
         zcch.a(this.c, var6, var1.getName());
      } else {
         System.arraycopy(var3, 0, this.c, var6, 4);
         int var8 = var6 + 4;
      }

   }
}
